package cn.sciento.farm.devicemanager.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 定时触发日志
 * @author Walton
 * @since 2020/10/15 17:56
 */
@Data
public class DevTimerLog extends Model<DevTimerLog> {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long timerId;

    private Long startTime;

    private Integer result;

    private Long controllerId;

    private String name;

    private String tenantId;
    @Override
    protected Serializable pkVal() {
        return super.pkVal();
    }

    @Override
    public String toString() {
        return "DevTimerLog{" +
                "id=" + id +
                ", timerId=" + timerId +
                ", startTime=" + startTime +
                ", result=" + result +
                ", controllerId=" + controllerId +
                ", name='" + name + '\'' +
                ", tenantId='" + tenantId + '\'' +
                '}';
    }
}
